package chapte16;
interface Animal{
    public String NAME="牧羊犬";
    public void  shout();
    public void info();
}
abstract class Action{
    public abstract void eat();
}
class Dog extends Action implements Animal{
    public void eat(){
        System.out.println("喜欢吃骨头");
    }
    public void shout(){
        System.out.println("汪汪汪...");
    }
    public void info(){
        System.out.println("名称："+NAME);
    }
}
public class Example112 {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.info();
        dog.shout();
        dog.eat();
    }
}
